home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990422-19990725 / 000200_news@columbia.edu _Tue Jun 22 12:03:49 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Return-Path: <news@columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA25006
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 22 Jun 1999 12:03:48 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA20944
  7.     for kermit.misc@watsun.cc.columbia.edu; Tue, 22 Jun 1999 11:56:42 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: "quertyq@hotmail.com" <quertyq@hotmail.com>
  10. Subject: Reading data from COM port
  11. Date: Tue, 22 Jun 1999 14:25:48 GMT
  12. Organization: Deja.com - Share what you know. Learn what you don't.
  13. Message-ID: <7ko6ct$a5d$1@nnrp1.deja.com>
  14. To: kermit.misc@columbia.edu
  15.  
  16. Hi All:
  17.  
  18. I have a situation where I need to hook up a PC and a report-generating
  19. device via a serial cable between the com ports.
  20.  
  21. When the device prints a report, I need the PC ( running kermit ) to
  22. capture the data exactly, and output the data to a file on the PC.
  23.  
  24. Now I know the procedure for log session, and stuff like that, but I
  25. need to write a script so this is done _unattended_.  This seems to
  26. be a problem. I've tried to log session and it will not log the output
  27. until I manually connect -- no good.
  28.  
  29. I have tried to "input 0 \10" to wait for the line feed to capture
  30. using the input buffer, but this too seems futile.  The buffer
  31. changes the output, and the "clear input-buffer" did not solve the
  32. problem. Again, the integrity of the data being captured is critical
  33. to the other programs working.
  34.  
  35. I've worked with Kermit before, and after much bragging to my boss,
  36. I'm in a bit of a pickle right now.  Between my boss on one shoulder,
  37. and the deadline on the other ... <ahem>  HELP!
  38.  
  39. Does anyone have any code snippets that solves this problem?
  40.  
  41. Thanks all for any light that can be shed on this problem.
  42.  
  43. Matt
  44.  
  45.  
  46. Sent via Deja.com http://www.deja.com/
  47. Share what you know. Learn what you don't.